#include "mage.h"
#include "../Spells/healingspell.h"
#include "../Spells/damagespell.h"

Texture* Mage::mage_texture = nullptr;

Mage::Mage(): Player("Mage", 100, 250, 3, mage_texture) {
    if (mage_texture == nullptr) {
        mage_texture = new Texture("mage.png");
        this->texture = mage_texture;
    }
    Spells.push_back(new HealingSpell("Heal", 30, 3));
    Spells.push_back(new DamageSpell("Fire", 50, 4));
    Spells.push_back(new DamageSpell("Ultima", 100, 70));
}

void Mage::attack(Unit* u) {
    u->HP.Current -= 5;
}
